<template>
    <div class="addto-shopbag">
        <button @click="addToShopBag">添加到购物袋</button>
        <btn-mask ref="maskBTN"/>
    </div>
</template>

<script>
import BtnMask from './BtnMask.vue'
    export default {
    components: { BtnMask },
    props: ['productMsg'],
    methods: {
        addToShopBag() {
            console.log(this.$refs.maskBTN.showbtnMask())
        }
    },
    }
</script>

<style lang="less" scoped>
.addto-shopbag{
    opacity: .3; 
}
button{
    width: 100%;
    background-color: #0071e3;
    margin-top: 23px;
    padding: 8px 16px;
    color: white;
    border: none;
    font-size: 17px;
    line-height: 1.17;
    font-weight: 400;
    border-radius: 8px; 
}
</style>